package com.byedu.domain.course.vo;

import com.byedu.domain.course.QuestionDO;
import com.byedu.domain.course.vo.enumvos.QuestionTypeVO;

import java.io.Serializable;
import java.util.List;

/**
 * Created by weidangwang on 2017/3/6.
 */
public class QuestionOnlyVO implements Serializable{

	private static final long serialVersionUID = 3240440230464557425L;

	/*考题编号*/
    private int id;
    /*序号*/
    private int no;
    /*考题内容*/
    private String content;
    /*考题类型*/
    private String ctype;

    private List<AnswerOnlyVO> answers;

    public QuestionOnlyVO(){}

    public QuestionOnlyVO(QuestionDO questionDO, List<AnswerOnlyVO> answers) {
        this.id = questionDO.getId();
        this.no = questionDO.getNo();
        this.content = questionDO.getContent();
        this.ctype = new QuestionTypeVO(questionDO.getCtype()).getTitle();
        this.answers = answers;
    }


    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getNo() {
        return no;
    }

    public void setNo(int no) {
        this.no = no;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }



    public List<AnswerOnlyVO> getAnswers() {
        return answers;
    }

    public void setAnswers(List<AnswerOnlyVO> answers) {
        this.answers = answers;
    }

    public String getCtype() {
        return ctype;
    }

    public void setCtype(String ctype) {
        this.ctype = ctype;
    }
}
